﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WyUnity.Data.TableMapper;

namespace DAL_13_0.Entities
{
    [Map("ICStockBill")]
    public class ICStockBill : TableBase<ICStockBill>
    {
        public ICStockBill()
        {
            FBrNo = string.Empty;
        }
        [Map]
        public string FBrNo { get; set; }
        [Map(IsKeyField = true)]
        public int FInterID { get; set; }
        [Map]
        public int FTranType { get; set; }
        [Map]
        public string FBillNo { get; set; }
        [Map]
        public int FSupplyID { get; set; }
        [Map]
        public DateTime FDate { get; set; }
        [Map]
        public string FNote { get; set; }
        [Map]
        public int FDeptID { get; set; }
        [Map]
        public int FEmpID { get; set; }
        [Map]
        public int FBillerID { get; set; }
        [Map]
        public int? FCheckerID { get; set; }
        [Map]
        public int FStatus { get; set; }

    }

    [Map("ICStockBillEntry")]
    public class ICStockBillEntry : TableBase<ICStockBillEntry>
    {
        [Map(IsKeyField = true)]
        public int FInterID { get; set; }
        [Map(IsKeyField = true)]
        public int FEntryID { get; set; }
        [Map]
        public int FItemID { get; set; }
        [Map]
        public decimal FQty { get; set; }
        [Map]
        public int FUnitID { get; set; }
        [Map]
        public decimal FAuxQty { get; set; }
        [Map]
        public decimal FQtyActual { get; set; }
        [Map]
        public decimal FAuxQtyActual { get; set; }
        [Map]
        public int FSCStockID { get; set; }
        [Map]
        public int FDCStockID { get; set; }

        public string PLine { get; set; }
        public string WorkClass { get; set; }
        public DateTime PDate { get; set; }
    }
    [Map("ICStockBillEntryBarcode")]
    public class ICStockBillEntryBarcode : TableBase<ICStockBillEntryBarcode>
    {
        [Map(IsKeyField = true)]
        public int FInterID { get; set; }
        [Map(IsKeyField = true)]
        public string FBarcode { get; set; }
        [Map]
        public int FEntryID { get; set; }
        [Map]
        public int FTrantype { get; set; }
        [Map]
        public string FBarcode2 { get; set; }
    }
}
